package com.qf.controller;

import com.qf.annotation.RequiresPermissionsDesc;
import com.qf.util.ResponseUtil;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotNull;

/**
 * @author lixu
 */
@RestController
@RequestMapping("/admin/order")
@CrossOrigin
@Validated
public class OrderController {


    /**
     * 订单列表 ctrl + alt +o
     * - 接口地址 : http://localhost:8083/admin/order/list?page=1&limit=20&sort=add_time&order=desc
     *
     * - 下行数据 :
     */
    //@RequiresPermissionsDesc(menu = {"商场管理","订单管理"},button = "查询")
    //@RequiresPermissions(value = "admin:order:list")
    @GetMapping("/list")
    public Object list(@NotNull Integer page, Integer limit, String sort, String order, String username){
        return ResponseUtil.ok();
    }
}
